<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">


<!-- Mirrored from www.zi-han.net/theme/hplus/form_builder.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:19 GMT -->
<head>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />


<title>厚合尚品商城管理后台</title>

<link rel="shortcut icon" href="favicon.ico" />

<link href="mng/css/bootstrap.min14ed.css?v=3.3.6"
	th:href="@{/mng/css/bootstrap.min14ed.css?v=3.3.6}" rel="stylesheet" />
<link href="mng/css/font-awesome.min93e3.css?v=4.4.0"
	th:href="@{/mng/css/font-awesome.min93e3.css?v=4.4.0}" rel="stylesheet" />
<!-- Data Tables -->
<link href="mng/css/plugins/dataTables/dataTables.bootstrap.css"
	th:href="@{/mng/css/plugins/dataTables/dataTables.bootstrap.css}"
	rel="stylesheet" />

<link href="mng/css/animate.min.css"
	th:href="@{/mng/css/animate.min.css}" rel="stylesheet" />
<link href="mng/css/style.min862f.css?v=4.1.0"
	th:href="@{/mng/css/style.min862f.css?v=4.1.0}" rel="stylesheet" />


</head>

<body class="gray-bg">
	<div class="panel-body" style="padding-bottom: 0px;">
		<div class="panel panel-default">
			<div class="panel-heading">查询条件</div>
			<div class="panel-body">
				<form id="formSearch" class="form-horizontal"
					th:action="@{/product/toprolist}">
					<div class="form-group" style="margin-top: 15px">
						<label class="control-label col-sm-1"
							for="txt_search_departmentname">商品编号</label>
						<div class="col-sm-3">
							<input type="text" name="productId" class="form-control"
								id="txt_search_departmentname" />
						</div>
						<label class="control-label col-sm-1" for="txt_search_statu">商品名称</label>
						<div class="col-sm-3">
							<input type="text" name="productName" class="form-control"
								id="txt_search_statu" />
						</div>
						<div class="col-sm-4" style="text-align: left;">
							<button type="submit" style="margin-left: 50px" id="btn_query"
								class="btn btn-primary">查询</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>

	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<!-- <div id="toolbar" class="btn-group">
						<button id="btn_add" type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
						</button>
						<button id="btn_edit" type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>上架
						</button>
						<button id="btn_delete" type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>下架
						</button>
					</div> -->
					<div class="ibox-content">
						<table class="table table-striped table-hover dataTables-example">
							<thead>
								<tr>
									<th>序号</th>
									<th>商品编号</th>
									<th>商品名称</th>
									<th>市场价</th>
									<th>商城价</th>
									<th>抵扣积分</th>
									<th>商品状态</th>
									<th>销售状态</th>
									<th>库存数量</th>
									<th>已售数量</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="proInfo,pstat : ${proList}">
									<td th:text="${pstat.count}"></td>
									<td th:text="${proInfo.productId}"></td>
									<td th:text="${proInfo.productName}"></td>
									<td th:text="${proInfo.marketPrice}"></td>
									<td th:text="${proInfo.price}"></td>
									<td th:text="${proInfo.bonus}"></td>
									<td th:if="${proInfo.proStatus == 0}">入库</td>
									<td th:if="${proInfo.proStatus == 1}">下架</td>
									<td th:if="${proInfo.proStatus == 2}">上架</td>
									<td th:if="${proInfo.sellStatus == 0}">普通</td>
									<td th:if="${proInfo.sellStatus == 1}">热销</td>
									<td th:if="${proInfo.sellStatus == 2}">推荐</td>
									<td th:text="${proInfo.stockCount}"></td>
									<td th:text="${proInfo.soldCount}"></td>
									<td><a th:href="@{/product/edit(pid=${proInfo.productId})}">编辑</a> ／ <a
										th:href="@{/product/goup(pid=${proInfo.productId})}">上架</a> ／
										<a th:href="@{/product/godown(pid=${proInfo.productId})}">下架</a> / 
										<a th:href="@{/product/sdel(pid=${proInfo.productId})}">删除</a></td>
								</tr>

							</tbody>

						</table>

					</div>
				</div>
			</div>
		</div>

	</div>
	<script src="mng/js/jquery.min.js?v=2.1.4"
		th:src="@{/mng/js/jquery.min.js?v=2.1.4}"></script>
	<script src="mng/js/bootstrap.min.js?v=3.3.6"
		th:src="@{/mng/js/bootstrap.min.js?v=3.3.6}"></script>
	<script src="mng/js/plugins/dataTables/jquery.dataTables.js"
		th:src="@{/mng/js/plugins/dataTables/jquery.dataTables.js}"></script>
	<script src="mng/js/plugins/dataTables/dataTables.bootstrap.js"
		th:src="@{/mng/js/plugins/dataTables/dataTables.bootstrap.js}"></script>
	<script src="mng/js/content.min.js?v=1.0.0"
		th:src="@{/mng/js/content.min.js?v=1.0.0}"></script>

	<!-- <script src="mng/js/plugins/bootstrap-table/bootstrap-table.min.js"
			th:src="@{/mng/js/plugins/bootstrap-table/bootstrap-table.min.js}"></script>
		<script
			src="mng/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"
			th:src="@{/mng/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js}"></script>
		<script
			src="mng/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"
			th:src="@{/mng/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
		<script src="mng/js/demo/bootstrap-table-demo.min.js"
			th:src="@{/mng/js/demo/bootstrap-table-demo.min.js}"></script> -->

	<script>
		$(document).ready(function() {
			$(".dataTables-example").dataTable({
				"bPaginate" : true, //翻页功能
				"bLengthChange" : false, //改变每页显示数据数量
				"bFilter" : false, //过滤功能
				"bSort" : false, //排序功能
				"bInfo" : true,//页脚信息
				"bAutoWidth" : true
			//自动宽度
			});
		});
	</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->
</html>
